package com.dlc.shop.seckill.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 秒杀订单
 *
 * @author LGH
 * @date 2019-08-28 09:36:59
 */
@Data
@TableName("tz_seckill_order")
public class SeckillOrder implements Serializable{
    private static final long serialVersionUID = 1L;

    @Schema(description = "秒杀订单id" )
    @TableId
    private Long seckillOrderId;

    @Schema(description = "秒杀id" )
    private Long seckillId;

    @Schema(description = "用户id" )
    private String userId;

    @Schema(description = "商品id" )
    private Long prodId;

    @Schema(description = "订单号" )
    private String orderNumber;

    @Schema(description = "状态 -1指无效，0指成功，1指已付款" )
    private Integer state;

    @Schema(description = "秒杀到的商品数量" )
    private Integer prodCount;

    @Schema(description = "创建时间" )
    private Date createTime;

    @Schema(description = "秒杀规格id" )
    private Long seckillSkuId;
}
